package com.logic.landseaserver.ws.request;

import com.logic.landseaserver.domain.Property;
import com.logic.system.domain.Address;

public class PropertyReq {
    private Integer id;
    private String name;
    private Double area;

    private String type;

    private String cityCode;

    private Double rent;

    private Integer rentYearPlus;

    private Double rentPercentagePlus;

    private String payMethod;

    private Double fee;

    private Address address;

    private String invoiceType;

    private String drawingId;

    private String estateCertId;

    private String ownerAttachmentId;

    private String status;

    private String suspendCause;

    private String ownerInfo;
    private Integer rentFree;
    private Double lease;

    public Integer getRentFree() {
        return rentFree;
    }

    public Double getLease() {
        return lease;
    }

    public void setLease(Double lease) {
        this.lease = lease;
    }

    public void setRentFree(Integer rentFree) {
        this.rentFree = rentFree;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }


    public String getCityCode() {
        return cityCode;
    }

    public void setCityCode(String cityCode) {
        this.cityCode = cityCode;
    }


    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }


    public Integer getRentYearPlus() {
        return rentYearPlus;
    }

    public void setRentYearPlus(Integer rentYearPlus) {
        this.rentYearPlus = rentYearPlus;
    }

    public Double getRentPercentagePlus() {
        return rentPercentagePlus;
    }

    public void setRentPercentagePlus(Double rentPercentagePlus) {
        this.rentPercentagePlus = rentPercentagePlus;
    }

    public String getPayMethod() {
        return payMethod;
    }

    public void setPayMethod(String payMethod) {
        this.payMethod = payMethod;
    }


    public Address getAddress() {
        return address;
    }

    public void setAddress(Address address) {
        this.address = address;
    }

    public String getInvoiceType() {
        return invoiceType;
    }

    public void setInvoiceType(String invoiceType) {
        this.invoiceType = invoiceType;
    }

    public String getDrawingId() {
        return drawingId;
    }

    public void setDrawingId(String drawingId) {
        this.drawingId = drawingId;
    }

    public String getEstateCertId() {
        return estateCertId;
    }

    public void setEstateCertId(String estateCertId) {
        this.estateCertId = estateCertId;
    }

    public String getOwnerAttachmentId() {
        return ownerAttachmentId;
    }

    public void setOwnerAttachmentId(String ownerAttachmentId) {
        this.ownerAttachmentId = ownerAttachmentId;
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    public String getSuspendCause() {
        return suspendCause;
    }

    public void setSuspendCause(String suspendCause) {
        this.suspendCause = suspendCause;
    }

    public Double getArea() {
        return area;
    }

    public void setArea(Double area) {
        this.area = area;
    }

    public Double getRent() {
        return rent;
    }

    public void setRent(Double rent) {
        this.rent = rent;
    }

    public Double getFee() {
        return fee;
    }

    public void setFee(Double fee) {
        this.fee = fee;
    }

    public String getOwnerInfo() {
        return ownerInfo;
    }

    public void setOwnerInfo(String ownerInfo) {
        this.ownerInfo = ownerInfo;
    }

    public static Property toPropertyPOJO(PropertyReq req) {
        Property property = new Property();
        property.setId(req.getId());
        property.setName(req.getName());
        property.setArea(req.getArea());
        property.setType(req.getType());
        property.setRent(req.getRent());
        property.setRentYearPlus(req.getRentYearPlus());
        property.setRentPercentagePlus(req.getRentPercentagePlus());
        property.setPayMethod(req.getPayMethod());
        property.setRentFree(req.getRentFree());
        property.setFee(req.getFee());
        property.setInvoiceType(req.getInvoiceType());
        property.setDrawingId(req.getDrawingId());
        property.setOwnerInfo(req.getOwnerInfo());
        property.setEstateCertId(req.getEstateCertId());
        property.setOwnerAttachmentId(req.getOwnerAttachmentId());
        property.setCity(req.getCityCode());
        property.setLease(req.getLease());
        return property;
    }
}
